<template>
  <!-- 公共header-返回按钮-组件 -->
  <div class="back-ward" @click="onRouteBack">
    <span class="iconfont icon-header-arrow-left"></span>
  </div>
</template>
              
<script>
export default {
  name: "BackWard",
  components: {},
  data() {
    return {};
  },
  methods: {
    onRouteBack() {
      this.$router.go(-1);
    }
  },
  created() {}
};
</script>
              
<style lang="scss" scoped>
@import "@/assets/styles/mixins.scss";
@import "@/assets/styles/variables.scss";
.back-ward {
  position: absolute;
  top: 0;
  left: 0;
  @include flex-row;
  @include vh-center;
  width: $headerHeight;
  height: $headerHeight;

  .iconfont {
    font-size: 0.2rem;
  }
}
</style>